package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "客户")
@TableName("t_custom")
public class CustomBean {
    @ApiModelProperty(hidden = true)
    @TableId(value = "pk_customId",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "客户名")
    @TableField("c_name")
    private String name;
    @ApiModelProperty(value = "经营范围")
    @TableField("c_scope")
    private String scope;
    @ApiModelProperty(value = "负责人")
    @TableField("c_director")
    private String director;
    @ApiModelProperty(value = "负责人电话")
    @TableField("c_phone")
    private String phone;
    @ApiModelProperty(value = "办公地址")
    @TableField("c_address")
    private String address;
    @ApiModelProperty(value = "邮箱")
    @TableField("c_email")
    private String email;

    public CustomBean() {
    }

    public CustomBean(String name, String scope, String director, String phone, String address, String email) {
        this.name = name;
        this.scope = scope;
        this.director = director;
        this.phone = phone;
        this.address = address;
        this.email = email;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public String getDirector() {
        return director;
    }

    public void setDirector(String director) {
        this.director = director;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String toString() {
        return "CustomBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", scope='" + scope + '\'' +
                ", director='" + director + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", email='" + email + '\'' +
                '}';
    }
}
